import {postApi, useApi} from "@/composables/useApi.js";
import {getGradeListAll} from "@/api/standard.js";
/** 不分页年级列表*/
export const getGradeList= (id)=>{
    return new Promise((resolve, reject)=>{
        getGradeListAll({grade_id: id}).then(res=>{
            console.log(res.data)
            resolve(res.data)
        })
    })
}

/** 获取场次列表*/
export const getSessionList = (type)=>{
    return new Promise((resolve, reject)=>{
         postApi('/admin/Api.Examcourse/index',{page:1, limit: 99999, type: type}).then(res=>{
             resolve(res.data.data)
        }).catch(err=>reject(err))
    })
}

